<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>微博系统--跳转提示</title>
	<style>
		.info {
			width: 800px;
			height: 140px;
			margin: 60px auto 20px auto;
			background: url("__PUBLIC__/{:MODULE_NAME}/img/weibo_bg.jpg") repeat;
			font-size: 30px;
			text-align: center;
			color: #5f5f5f;
			font-family: '微软雅黑 Light',Verdana, Arial, sans-serif;
			padding:100px 0 0 0;
			box-shadow: 0 0 5px #bbb;
		}
		.info .jump {
			font-size: 14px;
			text-align: center;
		}
		.info .text {
			font-size: 32px;
			height: 38px;
			display: inline-block;
			color: #666;
			text-indent: 56px;
			line-height: 38px;
		}
		.info .message_success {
			background: url("__PUBLIC__/{:MODULE_NAME}/img/jump_success.png") no-repeat left 55%;
		}
		.info .message_error {
			background: url("__PUBLIC__/{:MODULE_NAME}/img/jump_error.png") no-repeat left 55%;
		}

		.info .jump {
			text-align: right;
			padding-right: 20px;
			padding-top:55px;
			font-size: 16px;


		}
		.info .jump a{
			text-decoration: none;
			color: #f60;
		}
	</style>



</head>
<body>
<?php if($status) { ?>
<div class="info">
	<span class="message_success text">{$message}&nbsp;</span>
	<p class="jump">页面自动 <a id="href" href="<?php echo($jumpUrl); ?>">跳转</a> 等待时间： <b id="wait"><?php echo($waitSecond); ?></b></p>
</div>

<?php } else { ?>
<div class="info">
	<span class="message_error text">{$error}&nbsp;</span>
	<p class="jump">页面自动 <a id="href" href="<?php echo($jumpUrl); ?>">跳转</a> 等待时间： <b id="wait"><?php echo($waitSecond); ?></b></p>
</div>


<?php } ?>


<script type="text/javascript">
	(function(){
		var wait = document.getElementById('wait'),href = document.getElementById('href').href;
		var interval = setInterval(function(){
			var time = --wait.innerHTML;
			if(time <= 0) {
				location.href = href;
				clearInterval(interval);
			};
		}, 1000);
	})();
</script>
</body>
</html>